package com.goodfox.web.biz.forest.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.goodfox.web.biz.forest.entity.ForestRights;
import com.goodfox.web.biz.forest.entity.Woodland;
import com.goodfox.web.generic.file.entity.WebFormEntity;
import com.goodfox.web.generic.provide.entity.Pager;

public interface ForestRightsService {

	/**
	 * 查询林权证分页列表
	 * @param start 开始数
	 * @param count 每页条数
	 * @param map 查询条件
	 * @return
	 */
	Pager<ForestRights> queryForestRightsPager(int currentPage,int numPerPage,Map map);
	
	/**
	 * 查询林权证简单汇总
	 * @param map
	 * @return
	 */
	Map queryForestRightsSimpleSummary(Map map);
	
	/**
	 * 获取林权证
	 * @param fstRigId
	 * @return
	 */
	ForestRights getForestRights(String fstRigId);
	
	/**
	 * 新增林权证
	 * @param entity
	 * @param loginLogId
	 */
	void addForestRights(ForestRights entity,String loginLogId);
	
	/**
	 * 更新林权证
	 * @param oldEny
	 * @param newEny
	 * @param loginLogId
	 */
	void modifyForestRights(ForestRights oldEny,ForestRights newEny,String loginLogId);
	
	/**
	 * 移除林权证
	 * @param entity
	 * @param loginLogId
	 */
	void removeForestRights(ForestRights entity,String loginLogId);
	
	/**
	 * 查询林地列表
	 * @param woodId
	 * @return
	 */
	List<Woodland> queryWoodlandList(String fstRigId);
	
	/**
	 * 新增林地
	 * @param entity
	 * @param loginLogId
	 */
	void addWoodland(Woodland entity,String loginLogId);
	
	/**
	 * 更新林地
	 * @param oldEny
	 * @param newEny
	 * @param loginLogId
	 */
	void modifyWoodland(Woodland oldEny,Woodland newEny,String loginLogId);
	
	/**
	 * 移除林地
	 * @param entity
	 * @param loginLogId
	 */
	void removeWoodland(Woodland entity,String loginLogId);
	
	/**
	 * 获取林地
	 * @param woodId
	 * @return
	 */
	Woodland getWoodland(String woodId);
	
	/**
	 * 导入林权证
	 * @param webFormEntity
	 * @return
	 */
	Map importForestRights(WebFormEntity webFormEntity,String loginLogId);
	
	/**
	 * 导出林权证列表
	 * @param map
	 * @return
	 */
	List<ForestRights> exportForestRightsList(HttpServletRequest request, HttpServletResponse response,Map map);
}
